package com.zhihuiyanche.service.orders;

import java.util.List;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import com.zhihuiyanche.domain.Orders;


public interface OrdersService {


	/**
	 * 添加
	 * @param orders
	 * @return
	 */
	public String insertOrders(Orders orders);
	
	/**
	 * 处理订单状态
	 * @param orders
	 * @return
	 */
	public boolean saveOrdersSuccess(Orders orders);
	
	/**
	 * 根据Id删除
	 * @param orders
	 * @return
	 */
	public boolean deleteOrdersById(Orders orders);
	

	/**
	 * 根据条件删除
	 * @param orders
	 * @return
	 */
	public boolean deleteOrdersByCondition(Orders orders);
	
	/**
	 * 根据Id修改
	 * @param orders
	 * @return
	 */
	public boolean updateOrdersById(Orders orders);
	
	/**
	 * 根据条件修改
	 * @param record
     * @param parameter
	 * @return
	 */
	public boolean updateOrdersByCondition(Orders record,Orders parameter);
	
	/**
	 * 根据id查询
	 * @param orders
	 * @return
	 */
	public Orders getOrdersById(Orders orders);
	
	/**
	 * 查询所有
	 * @param orders
	 * @return
	 */
	public JSONArray getOrdersByCondition(JSONObject orders);
	
	/**
	 * 分页查询查询总数
	 * @param orders
	 * @return
	 */
	public int getOrdersByPageCount(JSONObject orders);
	
	/**
	 * 报表所需数据
	 * @param shopId
	 * @return
	 */
	public List<String[]> getOrdersChart(String shopId);
	
	/**
	 * 查询订单信息
	 */
	public List<Orders> queryOrdersByCondition(Orders orders);
}
